home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 003.dms / 003.adf / TEXT / chapter16.txt < prev    next >
Text File  |  1992-09-02  |  4KB  |  182 lines

  1.  
  2.               The Absolute Beginners Guide To Amos
  3.               -------------------------------------
  4.                          Chapter sixteen
  5.                          ---------------
  6.  
  7.  
  8. I am now going to catch up on some system commands that may be of use
  9. to you in the future.
  10.  
  11. CLOSE WORKBENCH
  12. ---------------
  13. Using this command at the very start of your program will release around 40k
  14. of memory for your programs use, extra useful if you have only 512k.
  15.  
  16.  
  17. CLOSE EDITOR
  18. ------------
  19. Use this as well to save an additional 28k with no side effects at all
  20. to the running of your program.  Why this isn`t automatic I don`t know?
  21.  
  22.  
  23. F=FREE
  24. ------
  25. F returns the amount of space available for your variables, see next 
  26. command if you are running or have run out of space.
  27.  
  28.  
  29. SET BUFFER N
  30. ------------
  31. Sets the size of your variable area in kilobytes, so if you get an ERROR OUT
  32. OF VARIABLE SPACE (OR STRING SPACE) then use FREE to find out the space left
  33. and then add 5k or so at a time until the errors stop.
  34.  
  35.  
  36. BREAK ON/OFF
  37. ------------
  38. Usually you can break into any Amos program using CTRL+C.  Setting BREAK to 
  39. ON disables this.  Be careful though as unless you have a way to quit your 
  40. program you may never gain access to it again.  Basically only use in a
  41. completely finished program.  BREAK ON can speed up your program slightly
  42. but not noticeably.
  43.  
  44.  
  45.  
  46. LED ON/OFF
  47. ----------
  48. Turn OFF or ON the highpass filter which can enhance some tracker music and
  49. samples, experiment.
  50.  
  51.  
  52. Well that`s all for now, time to recap on the latest commands we have learnt
  53. over the last three chapters and have another self test quiz.
  54.  
  55.  
  56. BORDER$(ZONE$("TEXT",id,pat) Set up text/box menus.
  57.  
  58. BREAK ON/OFF                 Set or unset the CTRL+C break.
  59.  
  60. CLOSE EDITOR                 Save 28k of memory.
  61.  
  62. CLOSE WORKBENCH              Save 40k of memory.
  63.  
  64. FREE                         F=FREE, F will equal free space in vars area.
  65.  
  66. GOSUB                        Jump to a subroutine, see RETURN.
  67.  
  68. LED OFF/ON                   Switch high pass filter OFF/ON.
  69.  
  70. MOUSE ZONE                   Detect which defined zone mouse pointer is over.
  71.  
  72. RESERVE ZONE                 Used to reserve space for zones (and ZONE$)
  73.  
  74. RETURN                       RETURN from a subroutine. See gosub.
  75.  
  76. SAM LOOP                     Force a sample to loop continuously. 
  77.  
  78. SAM PLAY                     Play a sample from sample bank.
  79.  
  80. SAY                          Use the Amiga`s in built speech, SAY "HELLO"
  81.  
  82. SCREEN n                     Tell Amos the which screen to use.  
  83.  
  84. SCREEN DISPLAY               Position a screen.
  85.  
  86. SCREEN OFFSET                Used mainly in hardware scrolling.
  87.  
  88. SCREEN OPEN                  Literally OPEN a SCREEN.
  89.  
  90. SET BUFFER                   Set the length of the variables area.
  91.  
  92. SET TALK                     Set sex,mode,pitch,rate of SAY command.
  93.  
  94. SET ZONE                     Define the screen zones for mouse interaction.
  95.  
  96. UNDER ON/OFF                 Set text underlining ON or OFF.
  97.  
  98. WHILE WEND loop              Will execute all commands between WHILE and WEND
  99.                               until a condition is met.
  100.  
  101. --------------------------------------------------------------------------
  102.  
  103.                   Self test quiz number three
  104.                  <--------------------------->
  105.  
  106. Q 1.  What file would you need on your disk to use the SAY command?
  107.  
  108.    a) Speak.library
  109.    b) Narrator.Device
  110.    c) Amos.Amos
  111.  
  112. Q 2.  What command does GOSUB expect to find eventually?
  113.  
  114.    a) RETURN
  115.    b) GOTO
  116.    c) SET TALK
  117.  
  118. Q 3.  What will happen if we ran the following program?
  119.  
  120.       UNDER ONF: PRINT "HELLO": UNDER OFF
  121.  
  122.    a) A syntax error
  123.    b) It would print the word HELLO
  124.    c) It would print the word.
  125.  
  126.  
  127. Q 4. How much memory would CLOSE WORKBENCH save?
  128.  
  129.    a) 28k
  130.    b) 58k
  131.    c) 40k
  132.  
  133.  
  134. Q 5. Which command would you use to position a screen?
  135.  
  136.    a) Screen open
  137.    b) Screen offset
  138.    c) screen display
  139.  
  140.  
  141. Q 6. What is the missing part of this command?
  142.    
  143.      SCREEN OPEN 320,200,16,?
  144.  
  145.    a) Lowres or Hires
  146.    b) Res
  147.    c) 256
  148.  
  149.  
  150. Q 7. What is the command WHILE expects to meet sooner or later?
  151.  
  152.    a) GOTO
  153.    b) WEND
  154.    c) NEXT
  155.  
  156.  
  157. Q 8. What command does SET TALK effect?
  158.  
  159.    a) TALK
  160.    b) SHOOT
  161.    c) SAY
  162.  
  163.  
  164. Q 9. How would you protect your program from the CTRL+C user break?
  165.  
  166.    a) BREAK UP
  167.    b) BREAK ON
  168.    c) BREAK OFF
  169.  
  170.  
  171. Q10. What command would you use to expand the variables area? 
  172.  
  173.    a) SLAP BUTTER
  174.    b) SET BLITTER
  175.    c) SET BUFFER
  176.  
  177.  
  178. Answers next chapter.
  179.  
  180.  
  181. End of chapter sixteen.  
  182.